<?php

/**
 * What kind of style you need to load it here.
 * 
 * 1. custom views
 * 2. 
 */
function frontend_preset_styles_city (&$vars, $path){
    
    // Preset style for city channel
	if (preg_match('/^city\/([\x{4e00}-\x{9fa5}]+)/u', $path, $matched)) {
        
        drupal_add_css(path_to_theme() . '/css/layouts/city.layout.css');
		//drupal_add_css(path_to_theme() . '/css/list-activity.node.css');
        //drupal_add_css(path_to_theme() . '/css/views/activities/View_Activities_Recommended.view.css');
        //drupal_add_css(path_to_theme() . '/css/views/activities/View_Activities_List.view.css');
	}
}

function frontend_preset_styles_blogs (&$vars, $path){
	//drupal_add_css(path_to_theme() . '/css/components/blog.com.css');
    
    // Add blog component style for blog content page.
    if (preg_match('/^blogs\/[0-9]+/', $path)) {
    	drupal_add_css(path_to_theme() . '/css/components/blog.com.css');
    }
    //debug_record_data(__FUNCTION__, array_keys($vars));
}

function frontend_preset_styles_frontpage($vars, $path){
	drupal_add_css(path_to_theme() . '/css/sidebar_slideshow.region.css');
}

function frontend_preset_styles_activity(&$vars, $path){
	
    if ('activity/create'==$path) {
    	drupal_add_css(path_to_theme() . '/css/components/create-activity.com.css');
    }
}